Export to Word with Book format-How can we get the ID's BOLD ?

I created the module using the options:
1. Right click --> New ---> Formal Module
Give the details as:
2. Name : Module name
3. Object identifier --> Start at : 1
4. Object identifier --> Prefix : SRS
Then clicked "OK".
Then open the module in "standard view", then it appears like, one column for "ID" and another one column for "Description".Then i added one more attribute DSD_ID with type as "text".Also i changed the column name from "ID" to "SRS_ID"
While i export in word with book format, it will appear like:

SRS_ID : SRS9
DSD_ID : DSD2
The code file structure shall not be defined within this specification.

SRS_ID : SRS10
DSD_ID : DSD3
The header file structure shall not be defined within this specification.

But i want the IDs in BOLD as given below.

SRS_ID : SRS9
DSD_ID : DSD2
The code file structure shall not be defined within this specification.

SRS_ID : SRS10
DSD_ID : DSD3
The header file structure shall not be defined within this specification.

For getting the IDs in BOLD, what i have to do? I am not fluent in DXL scripting? Can anyone help me to get the IDs BOLD ?
ResmyFrancis - Thu Oct 07 09:10:01 EDT 2010

Re: Export to Word with Book format-How can we get the ID's BOLD ?
ResmyFrancis - Fri Oct 08 02:14:37 EDT 2010

Can anyone help me urgently ?

Re: Export to Word with Book format-How can we get the ID's BOLD ?
Bob_Swan - Fri Oct 08 05:24:58 EDT 2010

ResmyFrancis - Fri Oct 08 02:14:37 EDT 2010
Can anyone help me urgently ?

The exporter defaults the object identifier style to that defined in the style map for Object text at that level. (Refer to the exporter help for the advanced tab.)

If you want to avoid the dxl involved in the exporter you can try the following.
1) In the DOORS module set the paragraph style of all objects with Object text to '<Object Text:YOURSTYLE>'. Where YOURSTYLE is one of the styles you have defined in your export template file for the different object types, (information, requirement, capability etc.)
2) In your Word Export template Create a newstyle, 'NormalBold' which is a copy of the current 'Normal' style.
3) Amend the 'NormalBold' font style to be Bold. Save the template
4) In DOORS start the exporter dialog, on the advanced tab ensure the 'use paragraph style' option is selected, select 'use style mapping', use the new template file, and then the export button.
5) In the pop up map the required 'Object text Level n' values to the 'NormalBold' style. Save the style file. (On subsequent runs you can just load this style file.)
6) Finish the export.

Alternatively investigate WEXP ("other exporter facilities available"-- UK joke).
Hope that helps.

Re: Export to Word with Book format-How can we get the ID's BOLD ?
Mathias Mamsch - Fri Oct 08 07:08:31 EDT 2010

To get the IDs bold you would need to make your DXL layout something like this:
 

displayRich "{\\b ID: }" (identifier obj) // if you only want 'ID' bold
// displayRich "{\\b ID: " (identifier obj) "}" // if you want the complete line bold

 


I hope that works, with the standard export you cannot make the Heading line bold i think. But with the modified script it should work, if you make the column title empty.

Regards, Mathias

 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS